package com.sc.userspringboot.service.impl;

import com.sc.userspringboot.pojo.Follows;
import com.sc.userspringboot.dao.IFollowsDao;
import com.sc.userspringboot.pojo.Users;
import com.sc.userspringboot.service.IFollowsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户关注关系表 服务实现类
 * </p>
 *
 * @author user
 * @since 2025-09-19 06:25:46
 */
@Service
public class FollowsServiceImpl extends ServiceImpl<IFollowsDao, Follows> implements IFollowsService {

    @Autowired
    private IFollowsDao followsDao;
    @Override
    public List<Follows> getFollowsByIds(List<Integer> followerIds) {
        return followsDao.getFollowsByIds(followerIds);
    }

    @Override
    public List<Follows> getFansByIds(List<Integer> followeeIds) {
        return followsDao.getFansByIds(followeeIds);
    }

    @Override
    public Follows isFollowed(Integer followerId, Integer followeeId) {
        return followsDao.isFollowed(followerId,followeeId);
    }
}
